package com.warm.pump.frame.util;


public class MysqlJavaTypeUtil {

	public static String getJavaType(String db_type) {
		if (db_type.equals("varchar")) {
			return "String";
		} else if (db_type.equals("int")) {
			return "Integer";
		} else if (db_type.equals("bigint")) {
			return "Long";
		} else if (db_type.equals("datetime")) {
			return "Date";
		} else if (db_type.equals("date")) {
			return "Date";
		} else if (db_type.equals("decimal")) {
			return "BigDecimal";
		} else if (db_type.equals("text")) {
			return "String";
		} else if (db_type.equals("longtext")) {
			return "String";
		} else if (db_type.equals("char")) {
			return "String";
		} else {
			return db_type;
		}
	}
}
